﻿namespace Infra.Logging
{
    using System;

    /// <summary>
    /// Log class
    /// </summary>
    public class Log : ILog
    {
        /// <summary>
        /// Writes a message to the log.
        /// </summary>
        /// <param name="message">The message.</param>
        public void WriteMessage(string message)
        {
            System.Diagnostics.Debug.WriteLine(message);
        }

        /// <summary>
        /// Writes an exception to the log.
        /// </summary>
        /// <param name="exception">The exception.</param>
        public void WriteException(Exception exception)
        {
            System.Diagnostics.Debug.WriteLine(exception.Message);
        }
    }
}
